﻿Imports JuegosLanBackend


Public Class EditJuego
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub Btnbuscar_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Btnbuscar.Click
        Dim juego = New JuegoNegocio
        Dim lista = juego.buscarPorNombre(Me.TextBox1.Text)

        dgJuego.DataSource = lista
        dgJuego.DataBind()

        'For Each c As Categoria In lista

        '    Dim tr As New TableRow()

        '    Dim td1 As New TableCell()
        '    td1.Text = c.idCategoria
        '    tr.Cells.Add(td1)

        '    Dim td2 As New TableCell()
        '    td2.Text = c.nombre
        '    tr.Cells.Add(td2)

        '    Dim td3 As New TableCell()
        '    td3.Text = c.descripcion
        '    tr.Cells.Add(td3)

        '    Dim td4 As New TableCell()
        '    td4.Text = "<a href='CategoriaEditar.aspx'>Editar</a>"
        '    tr.Cells.Add(td4)

        '    Dim td5 As New TableCell()
        '    td5.Text = "<a href='CategoriaEliminar.aspx'>Eliminar</a>"
        '    tr.Cells.Add(td5)

        '    Table1.Rows.Add(tr)

        'Next
    End Sub


    Protected Sub dgJuego_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs)

    End Sub
End Class